package com.cougil.uoc.seghismed.model.ciphed.test;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class AnimalAdapter extends XmlAdapter<AnimalImpl, Animal> {
	
    public AnimalImpl marshal(Animal a) throws Exception {
		if (a instanceof AnimalImpl) {
			return (AnimalImpl) a;
        }
        return new AnimalImpl();
    }

    public Animal unmarshal(AnimalImpl a) throws Exception {
		return a;
    }
}
 


/*
public class AnimalAdapter {

}
 */